libxl: add HVM usb passthrough support
authorJuergen Gross <jgross@suse.com>
Tue, 20 Sep 2016 14:18:09 +0000 (16:18 +0200)
committerWei Liu <wei.liu2@citrix.com>
Tue, 20 Sep 2016 15:03:12 +0000 (16:03 +0100)
commit466200d8a094fc503b5b7cf00d37040dc3df51e0
treedab5e5261e8e442a8847320caebfa142b8ec13b9
parent86741b1f4a2578df3fda7ff73cc208041d5e87b3
libxl: add HVM usb passthrough support

Add HVM usb passthrough support to libxl by using qemu's capability
to emulate standard USB controllers.

A USB controller is added via qmp command to the emulated hardware
when a usbctrl device of type DEVICEMODEL is requested. Depending on
the requested speed the appropriate hardware type is selected. A host
USB device can then be added to the emulated USB controller via qmp
command.

Removing of the devices is done via qmp commands, too.

Signed-off-by: Juergen Gross <jgross@suse.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: George Dunlap <george.dunlap@citrix.com>
tools/libxl/libxl_device.c
tools/libxl/libxl_usb.c
tools/libxl/xl_cmdimpl.c